#ifndef __API_TICK_H
#define __API_TICK_H

#include "stdint.h"

typedef struct{

    unsigned short int msTick;
	unsigned char flag_1ms;
    unsigned char flag_10ms;
	unsigned char flag_20ms;
    unsigned char flag_50ms;
    unsigned char flag_100ms;
    unsigned char flag_500ms;
    unsigned char flag_1000ms;
}TIMER_CB;

void Api_Tick_Init(void);
void SysTick_Handler_soft(void);
unsigned char Api_Tick_PopFlag_1ms(void);
unsigned char Api_Tick_PopFlag_10ms(void);
unsigned char Api_Tick_PopFlag_20ms(void);
unsigned char Api_Tick_PopFlag_50ms(void);
unsigned char Api_Tick_PopFlag_100ms(void);
unsigned char Api_Tick_PopFlag_500ms(void);
unsigned char Api_Tick_PopFlag_1000ms(void);
void rt_hw_us_delay(u8 us);

#endif
